package com.example.treeHole.dao;

import com.example.treeHole.vo.ArticleLike;
import org.apache.ibatis.annotations.Param;

public interface ArticleLikeMapper {
    int deleteByPrimaryKey(String id);

    int insert(ArticleLike record);

    int insertSelective(ArticleLike record);

    ArticleLike selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(ArticleLike record);

    int updateByPrimaryKey(ArticleLike record);

    int like(@Param("articleId") String articleId,@Param("uId") String uId);

    void deleteLike(@Param("articleId")String articleId,@Param("uId") String uId);

    int findAliCount(String articleId);
}